package com.biz.primus.ms.member.dao.repository;

import com.biz.primus.model.member.enums.AddressTypes;
import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.member.dao.po.MemberAddressLabel;

import java.util.List;

/**
 *
 * @author jun.liu
 * @usage
 * @reviewer
 * @since 2017-10-23
 */
public interface MemberAddressLabelRepository extends CommonJpaRepository<MemberAddressLabel, Long>, MemberAddressLabelDao
{

    List<MemberAddressLabel> findByMemberIdOrderByUpdateTimestampDesc(Long memberId);

    List<MemberAddressLabel> findByLabelTypeAndMemberId(AddressTypes addressType, Long memberId);
}
